package edu.tyut.lingyunxing.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * DateTime: 2025/6/24 - 22:40
 * Author:Ycs
 */
@Data
public class Flight implements Serializable {
    
    private static final long serialVersionUID = 1L;
    
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    
    // 起点
    private Long fromAirport;
    
    // 终点
    private Long toAirport;
    
    // 经济舱价格
    private Long economyPrice;
    
    // 商务舱价格
    private Long businessPrice;
    
    // 经济舱座位数
    private Integer economySeats;
    
    // 商务舱座位数
    private Integer businessSeats;
    
    // 起飞时间
    private LocalDateTime flyTime;
    
    // 到达时间
    private LocalDateTime endTime;
    
}
